// main_interface.h
#ifndef MAIN_INTERFACE_H
#define MAIN_INTERFACE_H

#include <QWidget>
#include "hong.h"
#include "my_car.h"
#include "parking_surveillance.h"
#include "temperature_curve.h"
#include "car_connection.h"  // 添加头文件

namespace Ui {
class Main_interface;
}

class Main_interface : public QWidget
{
    Q_OBJECT

public:
    explicit Main_interface(QWidget *parent = 0);
    ~Main_interface();



protected:
    void resizeEvent(QResizeEvent *event) override;

private slots:
    void on_Air_PushButton_clicked();
    void on_Monitoring_PushButton_clicked();
    void on_Temperature_PushButton_clicked();
    void on_Connect_PushButton_clicked();

private:
    Ui::Main_interface *ui;
    QPixmap background;

    void updateBackground();
};

#endif // MAIN_INTERFACE_H
